# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-sub-info
_cpanname=Sub-Info
pkgver=0.002
pkgrel=9
pkgdesc="Tool for inspecting subroutines."
arch=('any')
license=('PerlArtistic' 'GPL')
depends=('perl-importer')
options=('!emptydirs')
url="https://search.cpan.org/dist/$_cpanname"
source=("https://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_cpanname-$pkgver.tar.gz")
md5sums=('335345b534fc0539c894050f7814cbda')

build() {
  cd "$srcdir/$_cpanname-$pkgver"
  perl Makefile.PL
  make
}

check() {
  cd "$srcdir/$_cpanname-$pkgver"
  make test
}

package() {
  cd "$srcdir/$_cpanname-$pkgver"
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
